Leave off `^`, since it's the default.
authorCasey Rodarmor <casey@rodarmor.com>
Sat, 11 Feb 2017 21:56:38 +0000 (13:56 -0800)
committerCasey Rodarmor <casey@rodarmor.com>
Sat, 11 Feb 2017 21:56:38 +0000 (13:56 -0800)
src/cargo/ops/registry.rs
tests/search.rs

index 1a602a9d4a4a04aa0a0d66df8c4cb43aedaea949..447c19f282f3945df8b176b2cb56228d414afdd5 100644 (file)
@@ -424,7 +424,7 @@ pub fn search(query: &str,
 
     let list_items = crates.iter()
         .map(|krate| (
-            format!("{} = \"^{}\"", krate.name, krate.max_version),
+            format!("{} = \"{}\"", krate.name, krate.max_version),
             krate.description.as_ref().map(|desc|
                 truncate_with_ellipsis(&desc.replace("\n", " "), 128))
         ))
index 4fd6678b0a66a62dead2602a9ac5b286941e75b4..4c55058ade51e96195049847527b80c1cbbc782e 100644 (file)
@@ -87,7 +87,7 @@ fn simple() {
                        .with_stderr("\
 [UPDATING] registry `[..]`")
                        .with_stdout("\
-hoare = \"^0.1.1\"    # Design by contract style assertions for Rust"));
+hoare = \"0.1.1\"    # Design by contract style assertions for Rust"));
 }
 
 #[test]
@@ -139,7 +139,7 @@ fn multiple_query_params() {
                        .with_stderr("\
 [UPDATING] registry `[..]`")
                        .with_stdout("\
-hoare = \"^0.1.1\"    # Design by contract style assertions for Rust"));
+hoare = \"0.1.1\"    # Design by contract style assertions for Rust"));
 }
 
 #[test]